Integrand size = 21, antiderivative size = 189 \[ \int \frac {\left (d+e x^2\right )^2 \left (a+b \sec ^{-1}(c x)\right )}{x^3} \, dx=\frac {b c d^2 \sqrt {1-\frac {1}{c^2 x^2}}}{4 x}-\frac {b e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}-\frac {1}{4} b c^2 d^2 \csc ^{-1}(c x)-i b d e \csc ^{-1}(c x)^2-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )+2 b d e \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )-2 b d e \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )-2 d e \left (a+b \sec ^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-i b d e \operatorname {PolyLog}\left (2,e^{2 i \csc ^{-1}(c x)}\right ) \]
[Out]
Time = 0.31 (sec) , antiderivative size = 189, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.714, Rules used = {5348, 272, 45, 4816, 12, 6874, 270, 327, 222, 2363, 4721, 3798, 2221, 2317, 2438} \[ \int \frac {\left (d+e x^2\right )^2 \left (a+b \sec ^{-1}(c x)\right )}{x^3} \, dx=-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}-2 d e \log \left (\frac {1}{x}\right ) \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )+\frac {b c d^2 \sqrt {1-\frac {1}{c^2 x^2}}}{4 x}-\frac {1}{4} b c^2 d^2 \csc ^{-1}(c x)-\frac {b e^2 x \sqrt {1-\frac {1}{c^2 x^2}}}{2 c}-i b d e \operatorname {PolyLog}\left (2,e^{2 i \csc ^{-1}(c x)}\right )-i b d e \csc ^{-1}(c x)^2+2 b d e \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )-2 b d e \log \left (\frac {1}{x}\right ) \csc ^{-1}(c x) \]
[In]
[Out]
Rule 12
Rule 45
Rule 222
Rule 270
Rule 272
Rule 327
Rule 2221
Rule 2317
Rule 2363
Rule 2438
Rule 3798
Rule 4721
Rule 4816
Rule 5348
Rule 6874
Rubi steps \begin{align*} \text {integral}& = -\text {Subst}\left (\int \frac {\left (e+d x^2\right )^2 \left (a+b \arccos \left (\frac {x}{c}\right )\right )}{x^3} \, dx,x,\frac {1}{x}\right ) \\ & = -\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )-2 d e \left (a+b \sec ^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-\frac {b \text {Subst}\left (\int \frac {-\frac {e^2}{x^2}+d^2 x^2+4 d e \log (x)}{2 \sqrt {1-\frac {x^2}{c^2}}} \, dx,x,\frac {1}{x}\right )}{c} \\ & = -\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )-2 d e \left (a+b \sec ^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-\frac {b \text {Subst}\left (\int \frac {-\frac {e^2}{x^2}+d^2 x^2+4 d e \log (x)}{\sqrt {1-\frac {x^2}{c^2}}} \, dx,x,\frac {1}{x}\right )}{2 c} \\ & = -\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )-2 d e \left (a+b \sec ^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-\frac {b \text {Subst}\left (\int \left (-\frac {e^2}{x^2 \sqrt {1-\frac {x^2}{c^2}}}+\frac {d^2 x^2}{\sqrt {1-\frac {x^2}{c^2}}}+\frac {4 d e \log (x)}{\sqrt {1-\frac {x^2}{c^2}}}\right ) \, dx,x,\frac {1}{x}\right )}{2 c} \\ & = -\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )-2 d e \left (a+b \sec ^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-\frac {\left (b d^2\right ) \text {Subst}\left (\int \frac {x^2}{\sqrt {1-\frac {x^2}{c^2}}} \, dx,x,\frac {1}{x}\right )}{2 c}-\frac {(2 b d e) \text {Subst}\left (\int \frac {\log (x)}{\sqrt {1-\frac {x^2}{c^2}}} \, dx,x,\frac {1}{x}\right )}{c}+\frac {\left (b e^2\right ) \text {Subst}\left (\int \frac {1}{x^2 \sqrt {1-\frac {x^2}{c^2}}} \, dx,x,\frac {1}{x}\right )}{2 c} \\ & = \frac {b c d^2 \sqrt {1-\frac {1}{c^2 x^2}}}{4 x}-\frac {b e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )-2 b d e \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )-2 d e \left (a+b \sec ^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-\frac {1}{4} \left (b c d^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{c^2}}} \, dx,x,\frac {1}{x}\right )+(2 b d e) \text {Subst}\left (\int \frac {\arcsin \left (\frac {x}{c}\right )}{x} \, dx,x,\frac {1}{x}\right ) \\ & = \frac {b c d^2 \sqrt {1-\frac {1}{c^2 x^2}}}{4 x}-\frac {b e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}-\frac {1}{4} b c^2 d^2 \csc ^{-1}(c x)-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )-2 b d e \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )-2 d e \left (a+b \sec ^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )+(2 b d e) \text {Subst}\left (\int x \cot (x) \, dx,x,\csc ^{-1}(c x)\right ) \\ & = \frac {b c d^2 \sqrt {1-\frac {1}{c^2 x^2}}}{4 x}-\frac {b e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}-\frac {1}{4} b c^2 d^2 \csc ^{-1}(c x)-i b d e \csc ^{-1}(c x)^2-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )-2 b d e \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )-2 d e \left (a+b \sec ^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-(4 i b d e) \text {Subst}\left (\int \frac {e^{2 i x} x}{1-e^{2 i x}} \, dx,x,\csc ^{-1}(c x)\right ) \\ & = \frac {b c d^2 \sqrt {1-\frac {1}{c^2 x^2}}}{4 x}-\frac {b e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}-\frac {1}{4} b c^2 d^2 \csc ^{-1}(c x)-i b d e \csc ^{-1}(c x)^2-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )+2 b d e \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )-2 b d e \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )-2 d e \left (a+b \sec ^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-(2 b d e) \text {Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\csc ^{-1}(c x)\right ) \\ & = \frac {b c d^2 \sqrt {1-\frac {1}{c^2 x^2}}}{4 x}-\frac {b e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}-\frac {1}{4} b c^2 d^2 \csc ^{-1}(c x)-i b d e \csc ^{-1}(c x)^2-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )+2 b d e \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )-2 b d e \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )-2 d e \left (a+b \sec ^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )+(i b d e) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{2 i \csc ^{-1}(c x)}\right ) \\ & = \frac {b c d^2 \sqrt {1-\frac {1}{c^2 x^2}}}{4 x}-\frac {b e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}-\frac {1}{4} b c^2 d^2 \csc ^{-1}(c x)-i b d e \csc ^{-1}(c x)^2-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \sec ^{-1}(c x)\right )+2 b d e \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )-2 b d e \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )-2 d e \left (a+b \sec ^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-i b d e \operatorname {PolyLog}\left (2,e^{2 i \csc ^{-1}(c x)}\right ) \\ \end{align*}
Time = 0.65 (sec) , antiderivative size = 194, normalized size of antiderivative = 1.03 \[ \int \frac {\left (d+e x^2\right )^2 \left (a+b \sec ^{-1}(c x)\right )}{x^3} \, dx=\frac {1}{4} \left (-\frac {2 a d^2}{x^2}+2 a e^2 x^2-\frac {2 b d^2 \sec ^{-1}(c x)}{x^2}+\frac {2 b e^2 x \left (-\sqrt {1-\frac {1}{c^2 x^2}}+c x \sec ^{-1}(c x)\right )}{c}+\frac {b d^2 \left (-1+c^2 x^2+c^2 x^2 \sqrt {-1+c^2 x^2} \arctan \left (\sqrt {-1+c^2 x^2}\right )\right )}{c \sqrt {1-\frac {1}{c^2 x^2}} x^3}+8 a d e \log (x)+4 i b d e \left (\sec ^{-1}(c x) \left (\sec ^{-1}(c x)+2 i \log \left (1+e^{2 i \sec ^{-1}(c x)}\right )\right )+\operatorname {PolyLog}\left (2,-e^{2 i \sec ^{-1}(c x)}\right )\right )\right ) \]
[In]
[Out]
Time = 2.42 (sec) , antiderivative size = 216, normalized size of antiderivative = 1.14
method | result | size |
parts | \(a \left (\frac {e^{2} x^{2}}{2}-\frac {d^{2}}{2 x^{2}}+2 d e \ln \left (x \right )\right )+i b d e \operatorname {arcsec}\left (c x \right )^{2}+\frac {b c \,d^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}{4 x}+\frac {b \,c^{2} d^{2} \operatorname {arcsec}\left (c x \right )}{4}-\frac {b \,\operatorname {arcsec}\left (c x \right ) d^{2}}{2 x^{2}}+\frac {b \,e^{2} \operatorname {arcsec}\left (c x \right ) x^{2}}{2}-\frac {b \,e^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x}{2 c}-\frac {i b \,e^{2}}{2 c^{2}}-2 b d e \,\operatorname {arcsec}\left (c x \right ) \ln \left (1+{\left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )}^{2}\right )+i b d e \operatorname {polylog}\left (2, -{\left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )}^{2}\right )\) | \(216\) |
derivativedivides | \(c^{2} \left (\frac {a \,x^{2} e^{2}}{2 c^{2}}+\frac {2 a d e \ln \left (c x \right )}{c^{2}}-\frac {a \,d^{2}}{2 c^{2} x^{2}}+\frac {i b d e \operatorname {arcsec}\left (c x \right )^{2}}{c^{2}}+\frac {b \,d^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}{4 c x}+\frac {b \,\operatorname {arcsec}\left (c x \right ) d^{2}}{4}-\frac {b \,\operatorname {arcsec}\left (c x \right ) d^{2}}{2 c^{2} x^{2}}+\frac {b \,\operatorname {arcsec}\left (c x \right ) x^{2} e^{2}}{2 c^{2}}-\frac {b \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, e^{2} x}{2 c^{3}}-\frac {i b \,e^{2}}{2 c^{4}}-\frac {2 b \ln \left (1+{\left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )}^{2}\right ) d e \,\operatorname {arcsec}\left (c x \right )}{c^{2}}+\frac {i b \operatorname {polylog}\left (2, -{\left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )}^{2}\right ) d e}{c^{2}}\right )\) | \(245\) |
default | \(c^{2} \left (\frac {a \,x^{2} e^{2}}{2 c^{2}}+\frac {2 a d e \ln \left (c x \right )}{c^{2}}-\frac {a \,d^{2}}{2 c^{2} x^{2}}+\frac {i b d e \operatorname {arcsec}\left (c x \right )^{2}}{c^{2}}+\frac {b \,d^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}{4 c x}+\frac {b \,\operatorname {arcsec}\left (c x \right ) d^{2}}{4}-\frac {b \,\operatorname {arcsec}\left (c x \right ) d^{2}}{2 c^{2} x^{2}}+\frac {b \,\operatorname {arcsec}\left (c x \right ) x^{2} e^{2}}{2 c^{2}}-\frac {b \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, e^{2} x}{2 c^{3}}-\frac {i b \,e^{2}}{2 c^{4}}-\frac {2 b \ln \left (1+{\left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )}^{2}\right ) d e \,\operatorname {arcsec}\left (c x \right )}{c^{2}}+\frac {i b \operatorname {polylog}\left (2, -{\left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )}^{2}\right ) d e}{c^{2}}\right )\) | \(245\) |
[In]
[Out]
\[ \int \frac {\left (d+e x^2\right )^2 \left (a+b \sec ^{-1}(c x)\right )}{x^3} \, dx=\int { \frac {{\left (e x^{2} + d\right )}^{2} {\left (b \operatorname {arcsec}\left (c x\right ) + a\right )}}{x^{3}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (d+e x^2\right )^2 \left (a+b \sec ^{-1}(c x)\right )}{x^3} \, dx=\int \frac {\left (a + b \operatorname {asec}{\left (c x \right )}\right ) \left (d + e x^{2}\right )^{2}}{x^{3}}\, dx \]
[In]
[Out]
\[ \int \frac {\left (d+e x^2\right )^2 \left (a+b \sec ^{-1}(c x)\right )}{x^3} \, dx=\int { \frac {{\left (e x^{2} + d\right )}^{2} {\left (b \operatorname {arcsec}\left (c x\right ) + a\right )}}{x^{3}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (d+e x^2\right )^2 \left (a+b \sec ^{-1}(c x)\right )}{x^3} \, dx=\int { \frac {{\left (e x^{2} + d\right )}^{2} {\left (b \operatorname {arcsec}\left (c x\right ) + a\right )}}{x^{3}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (d+e x^2\right )^2 \left (a+b \sec ^{-1}(c x)\right )}{x^3} \, dx=\int \frac {{\left (e\,x^2+d\right )}^2\,\left (a+b\,\mathrm {acos}\left (\frac {1}{c\,x}\right )\right )}{x^3} \,d x \]
[In]
[Out]